import AESPostman.AESPostman;
import utils.DataManageUtils;

import javax.swing.*;
import java.io.IOException;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;

/**
 * @version V1.0
 * @Title:
 * @Package
 * @Description:
 * @author: runoob
 * @date:
 */
public class Main {

    public static void main(String[] args) throws ClassNotFoundException, UnsupportedLookAndFeelException, InstantiationException, IllegalAccessException, IOException, SQLException {
        //设置窗口为windows风格
        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
//        UIManager.put("ComboBox.background", new Color(0, 0, 0, 0));
        UIManager.put("TabbedPane.contentOpaque", false);
        Connection connectionNet = DataManageUtils.getConnection();
        Statement statementNet = connectionNet.createStatement();
//        DataManageUtils.recreateTable(statementNet);
        DataManageUtils.createTable(statementNet);
        statementNet.close();
        connectionNet.close();
        new AESPostman();
    }

}
